package com.cin.cma.common.enums;

import lombok.Getter;

/**
 *
 * @Date：2024-07-15 10:53
 */
@Getter
public enum OpenApiErrorCode {
    CHANNEL_NOT_FOUND_ERROR("CHANNEL_NOT_FOUND_ERROR", "渠道未找到"),
    CHANNEL_CONFIG_ERROR("CHANNEL_CONFIG_ERROR", "渠道配置异常"),
    API_NOT_NULL_ERROR("API_NOT_NULL_ERROR", "接口API不能为空"),
    REQUEST_ERROR("REQUEST_ERROR", "请求票务商错误"),
    GET_REQUEST_ERROR("GET_REQUEST_ERROR", "get请求票务商异常"),
    POST_REQUEST_ERROR("POST_REQUEST_ERROR", "post请求票务商异常"),
    RESPONSE_ERROR("RESPONSE_ERROR", "票务商数据返回异常"),
    BUILDER_RESPONSE_MESSAGE_ERROR("BUILDER_RESPONSE_MESSAGE_ERROR", "构建返回数据异常"),
    METHOD_NOT_IMPLEMENTS_ERROR("NOT_IMPLEMENTS_ERROR", "方法未实现异常"),
    COPY_FIELD_ERROR("COPY_FIELD_ERROR", "复制字段值错误"),
    OAUTH2_RESPONSE_TYPE_ERROR("OAUTH2_RESPONSE_TYPE_ERROR", "无效的类型"),
    OAUTH2_CLIENT_ID_ERROR("OAUTH2_CLIENT_ID_ERROR", "无效的客户端ID"),
    OAUTH2_TOKEN_ERROR("OAUTH2_ACCESS_TOKEN_ERROR", "无效的授权令牌"),
    OAUTH2_SCOPE_ERROR("OAUTH2_SCOPE_ERROR", "不具备权限"),
    OAUTH2_CODE_ERROR("OAUTH2_CODE_ERROR", "无效的授权CODE"),
    OAUTH2_REFRESH_TOKEN_ERROR("OAUTH2_REFRESH_TOKEN_ERROR", "无效的刷新令牌"),
    OAUTH2_SCOPE_SIGNING_ERROR("OAUTH2_SCOPE_SIGNING_ERROR", "权限未签约"),
    OAUTH2_REDIRECT_URL_ERROR("OAUTH2_REDIRECT_URL_ERROR", "授权重定向地址错误"),
    OAUTH2_CLIENT_SECRET_ERROR("OAUTH2_CLIENT_SECRET_ERROR", "无效的客户端密钥"),
    OAUTH2_ERROR("OAUTH2_ERROR", "暂未开放的授权模式"),
    NO_ONLINE_CLIENTS("NO_ONLINE_CLIENTS", "没有在线客户端"),
    NOT_FOUND_CHANNEL("NOT_FOUND_CHANNEL", "没有找到渠道"),
    LOCK_SEAT_ERROR("LOCK_SEAT_ERROR", "锁座失败"),
    RELEASE_SEAT_ERROR("RELEASE_SEAT_ERROR", "释放座位失败"),
    BOOKING_ID_NO_EQUALS("BOOKING_ID_NO_EQUALS", "订单号不匹配"),
    API_SERCRET_INVALID_ERROR("API_SERCRET_INVALID_ERROR", "API密钥无效"),
    NOT_AUTH_ACCESS_CINEMA_ERROR("NOT_AUTH_ACCESS_CINEMA_ERROR", "无权访问当前影院"),
    HALL_NOT_EXIST("HALL_NOT_EXIST", "影厅不存在"),
    SCHEDULE_NOT_EXIST("SCHEDULE_NOT_EXIST", "排期不存在"),
    SCHEDULE_STOP_SALL("SCHEDULE_STOP_SALL", "场次已停售"),
    ORDER_CONFIRM_ERROR("ORDER_CONFIRM_ERROR", "确认订单错误"),
    NOT_FOUND_CINEMA("NOT_FOUND_CINEMA", "影院不存在"),
    NOT_FOUND_SEATPLAN("NOT_FOUND_SEATPLAN", "座位图不存在"),
    NOT_FOUND_SECTION("NOT_FOUND_SECTION", "场区不存在"),
    NOT_FOUND_CUSTOMER("NOT_FOUND_CUSTOMER", "客户信息不存在"),
    NOT_FOUND_ORDER("NOT_FOUND_ORDER", "订单不存在"),
    ORDER_NO_SUPPER_CANCEL("ORDER_NO_SUPPER_CANCEL", "订单不支持取消"),
    ORDER_NO_SUPPER_REFUND("ORDER_NO_SUPPER_REFUND", "订单不支持退单"),
    CREATE_TOKEN_LIMIT("CREATE_TOKEN_LIMIT", "生成CLIENT_TOKEN受限"),
    CHARGE_ERROR("CHARGE_ERROR", "充值失败"),
    ORDER_EXIST("ORDER_EXIST", "订单号重复"),
    CARD_REGISTER_ERROR("CARD_REGISTER_ERROR", "注册卡失败"),
    VOUCHER_NOT_FOUND("VOUCHER_NOT_FOUND", "券信息不存在"),
    VOUCHER_NOT_AVAILABLE("VOUCHER_NOT_AVAILABLE", "券不可用"),
    GET_SHOW_LIST_ERROR("GET_SHOW_LIST_ERROR", "文鱼获取场次列表错误"),
    GET_SEAT_LIST_ERROR("GET_SEAT_LIST_ERROR", "文鱼获取座位列表错误"),
    SUBMIT_ORDER_ERROR("SUBMIT_ORDER_ERROR", "文鱼提交订单错误"),
    GOODS_NOT_EXIST("GOODS_NOT_EXIST", "商品信息不存在"),
    REQUEST_SPEED_LIMIT("REQUEST_SPEED_LIMIT", "请求速度受限");

    private final String code;
    private final String message;

    OpenApiErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
